@extends("admin.template.main")
@section("title")
	Đăng Nhập.
@endsection
@section("content")
	@if(Session::has("register_success"))
		{{Session::get("register_success")}}
		<?php Session::forget("register_success")?>
	@endif
<!-- 		<div class="panel panel-primary" style="width:300px; margin:150px auto; padding: 2.5px;">
		<div class="panel-heading">
			<h3 class="panel-title"><span class="glyphicon glyphicon-log-in"></span> <span>Đăng Nhập</span></h3>
		</div>
			<form action="{{Asset('admin')}}" method="post"  id="form-register" >
				<input type="text" name="user_input" placeholder="Tài khoản" id="user_input" class="form-control" style="margin-top:10px;">		
				<input type="password" name="password" placeholder="Mật khẩu" id="password" class="form-control" style="margin-bottom:10px;margin-top:10px;">	
				<button class="btn btn-lg btn-primary btn-block">Đăng nhập</button>				
				@if(isset($error_message))
				<div class="alert alert-danger" role="alert" style="margin-top:10px;margin-bottom:10px;">{{$error_message}}</div>
				@endif
			</form>
		</div> -->
		<form action="{{Asset('login')}}" method="post"  id="form-register" >
		<div id="loginModal" class="modal show" tabindex="-1" role="dialog" aria-hidden="true">
		  <div class="modal-dialog">
		  <div class="modal-content">
		      <div class="modal-header">
		          <!-- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> -->
		          <h1 class="text-center">Đăng Nhập</h1>
		      </div>
		      <div class="modal-body">
		          <form class="form col-md-12 center-block">
		            <div class="form-group">
		               <input type="text" name="user_input" placeholder="Tài khoản" id="user_input" class="form-control" style="margin-top:10px;">		
		            </div>
		            <div class="form-group">
		              <input type="password" name="password" placeholder="Mật khẩu" id="password" class="form-control" style="margin-bottom:10px;margin-top:10px;">	
		            </div>
		            <div class="form-group">
		              <button class="btn btn-primary btn-lg btn-block">Đăng Nhập</button>
		              <span class="pull-right"><a href="#">Đăng Ký</a></span><span><a href="#">Trợ giúp?</a></span>
		            </div>
		            @if(isset($error_message))
					<div class="alert alert-danger" role="alert" style="margin-top:10px;margin-bottom:10px;">{{$error_message}}</div>
					@endif
		          </form>
		      </div>
		  </div>
		  </div>
		</div>
		</form>
@endsection
